package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DaoSchoolArticleSaveAdminDTO {

    @ApiModelProperty(value = "文章标题")
    @NotBlank(message = "标题不能为空")
    @Length(min = 1, max = 20, message = "标题最大长度20个字符")
    private String title;

    @ApiModelProperty(value = "文章封面")
    @NotBlank(message = "文章封面不能为空")
    private String cover;

    @ApiModelProperty(value = "简介")
    @NotBlank(message = "简介不能为空")
    @Length(min = 1, max = 100, message = "简介最大字数100")
    private String introduction;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "MP3/MP4格式封面or头像")
    private String videosImg;

    @ApiModelProperty(value = "MP3/MP4格式播放地址")
    private String videosUrl;

    @ApiModelProperty(value = "文件大小(是kb就是kb,是mb就是mb)")
    private String videosSize;

    @ApiModelProperty(value = "虚拟观看人数")
    @NotNull(message = "虚拟观看人数不能为空")
    private Integer vmViewsNumber;

    @ApiModelProperty(value = "文章的列表排序,数值越高越靠前")
    private Integer sort;

    @ApiModelProperty(value = "首页的文章排序,数值越高越靠前")
    private Integer homeSort;

    @ApiModelProperty(value = "音频后缀")
    private String audio;

}
